﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DialogText : MonoBehaviour
{
    public string[,] dialog;
    // Start is called before the first frame update
    void Start()
    {
        //row1 is name, row2 is dialog, row3 is index
        dialog = new string[20, 3] {
            {
                "开发者","欢迎来到KirinoMizu制作的某个小游戏，你可以点击屏幕右下角的continue来继续对话","0"
            },
            {
                "开发者","开发者Kirinomizu最讨厌的游戏是模拟经营和即时战略，因为开发者经常连普通难度都打不过，所以你应该知道这个游戏是什么主题了吧（笑）；另外的话" +
                      "，按住鼠标中键拖动可以挪动摄像机位置，滑动鼠标滚轮可以缩放摄像机","1"
            },
            {
                "开发者","我现在为你生成了这个游戏中的一个敌人，这种敌人会接近你控制的胶囊体，当然，我们的目标是将这种敌人消灭！","2"
            },
            {
                "开发者","这只是一个示例敌人，所以我已经帮忙把它消灭了，下面我会教你怎么造建筑","3"
            },
            {
                "开发者","随便左键点击绿色平面的任意位置来呼出菜单","4"
            },
            {
                "开发者","我们先选择建造炮台,点击后，选择的位置应该就会出现一个炮台，建造好以后就点击continue吧","5"
            },
            {
                "开发者","炮台会自动攻击敌人，保护我们的基地（就是这个胶囊体）。当然，敌人也会靠近胶囊体，对我们造成伤害","6"
            },
            {
                "开发者","你应该注意到左上角的资源条了吧，建造炮台需要花费资源，普通炮台需要花费100资源，特斯拉炮台需要花费175资源，敌人死亡会略微为我们增加资源收入,资源也会随着时间流逝缓慢增加","7"
            },
            {
                "开发者","现在，我们再建造一台特斯拉炮塔。点击空地来呼出菜单，如果你对位置不满意，你还可以点击菜单右上角关闭并且重新选择","8"
            },
            {
                "开发者","特斯拉炮台可以减速敌人，但是几乎不造成伤害,而且范围较小","9"
            },
            {
                "开发者","特斯拉塔对付移动速度很快的敌人尤其有效","10"
            },
            {
                "开发者","这基本就是全部了，准备好无尽的生存吧！","11"
            },
            {
                "","","12"
            },
            {
                "","","13"
            },
            {
                "","","14"
            },
            {
                "","","15"
            },
            {
                "","","16"
            },
            {
                "","","17"
            },
            {
                "","","18"
            },
            {
                "","","19"
            }
    };
}

    // Update is called once per frame
    void Update()
    {
        
    }
}
